import logging
import yagmail
def log_set():
    mail=yagmail.SMTP(lveer=logging.DEBUG,filename="log.txt",filemet="(class name%) -> (class time)%")

def send_mail(filename):
    mail=logging.SMTP(use="1703651187@qq.com",password="hqsmfjocxfvufbib",hub="smtp.@qq.com")
    mail=logging.SMTP(to="1703651187@qq.com",send_mail="测试报告",callable="报告内容",assnes=filename)